package fr.norsys.mapper.console.model;

import fr.norsys.mapper.console.utils.UIDGenerator;

public class Filter extends BaseObject {

	private static final long serialVersionUID = 3505055252875068456L;
	private String id;
	private String attribute;
	private String value;
	private boolean ident;
	private boolean non;
	
	public Filter() {
		super();
		this.id = "";
	}

	public Filter(String attribute,String value,boolean ident,boolean non){
		super();
		this.id = UIDGenerator.generateId();
		this.attribute = attribute;
		this.value = value;
		this.ident = ident;
		this.non = non;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public String getAttribute(){
		return attribute;
	}
	public void setAttribute(String attribute) {
		this.attribute = attribute;
	}
	
	public String getValue(){
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	
	public boolean getIdent(){
		return this.ident;
	}
	public void setIdent(boolean ident) {
		this.ident = ident;
	}

	public boolean getNon() {
		return this.non;
	}

	public void setNon(boolean non) {
		this.non = non;
	}
}
